﻿using TangReadyV1.Droid.Services;
using TangReadyV1.Services;

[assembly: Xamarin.Forms.Dependency(typeof(UniqueIdAndroid))]
namespace TangReadyV1.Droid.Services
{
    public class UniqueIdAndroid:IDevice
    {
        public string GetIdentifier()
        {
            // return Android.Provider.Settings.Secure.GetString(Xamarin.Forms.Forms.Context.ContentResolver, Android.Provider.Settings.Secure.AndroidId);
            return Android.Provider.Settings.Secure.GetString(MainActivity.Instance.ContentResolver, Android.Provider.Settings.Secure.AndroidId);

        }
    }
}